import SwiftUI

struct ContentView: View {
    @StateObject var arViewModel = ARViewModel()
    @State var addCube = false
    
    var body: some View {
        ZStack(alignment: .bottom){
            ARViewContainer(addCube:$addCube)
            Button(action: {
                addCube = true
            }, label: {
                Text("放置一个立方体")
            })
            .buttonStyle(.bordered)
            .padding()
        }
        .environmentObject(arViewModel)
    }
}
